package com.flyco.modules.stm.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 离线订单推送失败记录表
 * @Author: flyco
 * @Date:   2022-05-31
 * @Version: V1.0
 */
@Data
@TableName("oms_offline_order_error_record")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="oms_offline_order_error_record对象", description="离线订单推送失败记录表")
public class StmOfflineOrderErrorRecord {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**门店编号*/
	@Excel(name = "门店编号", width = 15)
    @ApiModelProperty(value = "门店编号")
	@Dict(dictTable ="stm_store_info",dicText = "name",dicCode = "store_id")
	private Long storeId;
	/**上级编号*/
	@Excel(name = "上级编号", width = 15)
    @ApiModelProperty(value = "上级编号")
	@TableField("`json`")
	private Object json;
	/**状态 0初值，3已处理*/
	@Excel(name = "状态 0初值，3已处理", width = 15)
    @ApiModelProperty(value = "状态 0初值，3已处理")
	@Dict(dicCode = "offline_order_status")
	private Integer status;
	/**错误原因*/
	@Excel(name = "错误原因", width = 15)
    @ApiModelProperty(value = "错误原因")
	private String reason;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
